﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Model.Models;
using LogisticsBLL;

namespace LogisticsUI.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class OrdersManageController : ControllerBase
    {
        private readonly LogBLL bll;

        public OrdersManageController(LogBLL bll)
        {
            this.bll = bll;
        }
        [Route("orders")]
        public List<Order> OrderInfo()
        {
            return bll.GetAll();
        }
        //public IHttpActionResult GetOrder(string Oid, string cname, string card, int Otype, int Status, string receivetel, DateTime createdate, DateTime comitedate)
        //{
        //    return bll.GetOrders(Oid, cname, card, Otype, Status, receivetel, createdate, comitedate);
        //}
    }
}
